<template>

<div>

<el-row class="tac">
    <el-menu
      default-active="2"
      class="el-menu-vertical-demo"
      @open="handleOpen"
      @close="handleClose">

      <el-submenu index="1">
        <template slot="title">
          <i class="el-icon-location"></i>
          <span>导航一</span>
        </template>

          <router-link to="/system/user">
          <el-menu-item index="system/user">选项1</el-menu-item>
          </router-link>

          <el-menu-item index="1-2">选项2</el-menu-item>
      </el-submenu>

    </el-menu>
</el-row>



</div>

</template>

<script>

  export default {
    name: "User",
    methods: {
      handleOpen(key, keyPath) {
        console.log(key, keyPath);
      },
      handleClose(key, keyPath) {
        console.log(key, keyPath);
      }
    }
  }
</script>

